#include <iostream>
#include <string>
#include "Parser.h"
#include "Scanner.h"

using namespace std;

int main(void) {
	cout << "hello world!" << endl;

	while (1) {
		string buf;
		std::cout << "Please input:";
		getline(cin, buf);
		cout << "buf: " << buf << endl;
		Scanner scanner(buf);
		Parser parser(scanner);
		parser.Parse();
		cout << "result: " << parser.Calculator() << endl;
	}

	return 0;
}